<template>
  <a-result status="403" title="ERROR 403" sub-title="对不起，您没有访问本页面的权限。">
    <template #extra>
      <a-button @click="toBack">
        <template #icon>
          <backward-outlined />
        </template>
        上一页
      </a-button>
      <a-button type="primary" @click="toHome">
        <template #icon>
          <home-outlined />
        </template>
        首页
      </a-button>
    </template>
  </a-result>
</template>

<script name="error403" lang="ts" setup>
const router = useRouter();
const toBack = () => {
  router.back();
};
const toHome = () => {
  router.push({ path: "/home" });
};
</script>
